from typing import Type


class Base:
    def fun_base(self):
        print('我是基类')


class User:
    def fun_user(self) -> Base:
        print('我是使用者')
        return Base()


user = User()
res = user.fun_user()
res.fun_base()
